#! /bin/bash

# "data-root": "/mnt/disk/docker-data",
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": [
    "https://registry.cn-hangzhou.aliyuncs.com", 
    "https://dockerhub.azk8s.cn", 
    "https://docker.mirrors.ustc.edu.cn", 
    "https://reg-mirror.qiniu.com", 
    "https://hub-mirror.c.163.com", 
    "https://mirror.ccs.tencentyun.com"
  ]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker